/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.lis.ctrl;

import com.cxhd.lis.device.BA600;
import com.cxhd.lis.device.BC_2600;
import com.cxhd.lis.device.BC_2900_MR;
import com.cxhd.lis.device.BC_3000_MR;
import com.cxhd.lis.device.BC_5000;
import com.cxhd.lis.device.BC_5800;
import com.cxhd.lis.device.BW_200;
import com.cxhd.lis.device.C_100;
import com.cxhd.lis.device.HC_9885;
import com.cxhd.lis.device.IMS_972_2;
import com.cxhd.lis.device.Ims_972;
import com.cxhd.lis.device.MC_600;
import com.cxhd.lis.device.MC_6600;
import com.cxhd.lis.device.Mejer_7001;
import com.cxhd.lis.device.PA54;
import com.cxhd.lis.device.SD_DJ;
import com.cxhd.lis.device.SK9000;
import com.cxhd.lis.device.TEK_Ⅱ_MINI;
import com.cxhd.lis.device.U120;
import com.cxhd.lis.device.U500;
import com.cxhd.lis.device.URIT180;
import com.cxhd.lis.device.URIT_200b;
import com.cxhd.lis.device.URIT_330;
import com.cxhd.lis.device.US_2000;
import com.cxhd.lis.device.XI_921;
import com.jfinal.core.Controller;
import com.jfinal.ext.route.ControllerBind;

/**
 *
 * @author 52461
 */
@ControllerBind(controllerKey = "/lis/data")
public class DeviceDataCtrl extends Controller {

    public void index() {

    }

    public void recDeviceData() {

        String device = getPara("device");
        if (device.equalsIgnoreCase("BC-3000")) {
            new BC_3000_MR(getPara("data"), getPara("data2"));
        } else if (device.equalsIgnoreCase("MC-6600")) {
            new MC_6600(getPara("data"));
        }
         else if (device.equalsIgnoreCase("MC-600")) {
            new MC_600(getPara("data"));
        }
        else if (device.equalsIgnoreCase("us-2000")) {
            new US_2000(getPara("data"));
        } else if (device.equalsIgnoreCase("ims-972")) {
            new Ims_972(getPara("data"));
        } else if (device.equalsIgnoreCase("BC-2900")) {
            new BC_2900_MR(getPara("data"), getPara("data2"));
        }
        else if (device.equalsIgnoreCase("mejer-7001")) {
            new Mejer_7001(getPara("data"));
        }
         else if (device.equalsIgnoreCase("BC-5800")) {
            new BC_5800(getPara("data"));
        }
          else if (device.equalsIgnoreCase("BC-5000")) {
            new BC_5000(getPara("data"));
        }
         else if (device.equalsIgnoreCase("C100")) {
            new C_100(getPara("data"));
        }
         else if (device.equalsIgnoreCase("TEK-Ⅱ MINI")) {
            new TEK_Ⅱ_MINI(getPara("data"));
        }
         else if (device.equalsIgnoreCase("U500")) {
            new U500(getPara("data"));
        }
        else if (device.equalsIgnoreCase("BW-200")) {
            new BW_200(getPara("data"));
        }
        else if (device.equalsIgnoreCase("BC-2600")) {
            new BC_2600(getPara("data"),getPara("data2"));
        }
          else if (device.equalsIgnoreCase("U120")) {
            new U120(getPara("data"));
        }
         else if (device.equalsIgnoreCase("BA600")) {
            new BA600(getPara("data"));
        }
        else if (device.equalsIgnoreCase("XI-921")) {
            new XI_921(getPara("data"));
        }
        else if (device.equalsIgnoreCase("URIT-330")) {
            new URIT_330(getPara("data"));
        }
          else if (device.equalsIgnoreCase("URIT180")) {
            new URIT180(getPara("data"));
        }
         else if (device.equalsIgnoreCase("SK9000")) {
            new SK9000(getPara("data"));
        }
         else if (device.equalsIgnoreCase("URIT-200b")) {
            new URIT_200b(getPara("data"));
        }
         else if (device.equalsIgnoreCase("PA54")) {
            new PA54(getPara("data"));
        }
         else if (device.equalsIgnoreCase("HC-9885")) {
            new HC_9885(getPara("data"));
        }
         else if (device.equalsIgnoreCase("K-lite5AU")) {
            new SD_DJ(getPara("data"));
        }
        

       
        //new US_2000(data);
        renderText("true");
    }
}
